<%@ page import="projectmanager.Requirement" %>



<div class="fieldcontain ${hasErrors(bean: requirementInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="requirement.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${requirementInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: requirementInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="requirement.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${requirementInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: requirementInstance, field: 'type', 'error')} required">
	<label for="type">
		<g:message code="requirement.type.label" default="Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="type" from="${requirementInstance.constraints.type.inList}" required="" value="${requirementInstance?.type}" valueMessagePrefix="requirement.type"/>
</div>

<div class="fieldcontain ${hasErrors(bean: requirementInstance, field: 'project', 'error')} required">
	<label for="project">
		<g:message code="requirement.project.label" default="Project" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="project" name="project.id" from="${projectmanager.Project.list()}" optionKey="id" required="" value="${requirementInstance?.project?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: requirementInstance, field: 'functionalPoints', 'error')} ">
	<label for="functionalPoints">
		<g:message code="requirement.functionalPoints.label" default="Functional Points" />
		
	</label>
	<g:field type="number" name="functionalPoints" value="${requirementInstance.functionalPoints}"/>
</div>



